import request from "@/router/axios";

// 获取咨询列表
export const getConsultationList = (params) => request({
  url: "/api/admin/feedback",
  method: "get",
  params: params
});

// 回复咨询
export const updateReply = (data) => request({
  url: `/api/admin/feedback/reply/${data.id}`,
  method: "post",
  data: {
    content: data.content
  }
});

// 获取意见反馈分类列表
export const getFeedbackTypeList = (params) => request({
  url: "/api/admin/feedbackType",
  method: "get",
  params: params
});
